﻿package mortal.game.view.business
{
    import flash.events.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.mvc.core.*;

    public class TradeMyItemListRenderer extends TradeListRenderer
    {

        public function TradeMyItemListRenderer()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            _item.configEventListener(MouseEvent.CLICK, this.onClickHandler);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            return;
        }// end function

        private function onClickHandler(event:MouseEvent) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.TradeClickItem, this.data.itemData));
            return;
        }// end function

    }
}
